from tortoise import BaseDBAsyncClient


async def upgrade(db: BaseDBAsyncClient) -> str:
    return """
        ALTER TABLE `Customers` ALTER COLUMN `price` SET DEFAULT 0;
        ALTER TABLE `Customers` MODIFY COLUMN `price` INT   COMMENT '金额' DEFAULT 0;"""


async def downgrade(db: BaseDBAsyncClient) -> str:
    return """
        ALTER TABLE `Customers` MODIFY COLUMN `price` VARCHAR(255)   COMMENT '金额';
        ALTER TABLE `Customers` ALTER COLUMN `price` DROP DEFAULT;"""
